<template>
	<view id="content">
		<view class="head">
			<view class="user_head">
				<image :src="avatarUrl" mode="aspectFill"></image>
			</view>
			<view class="user_name">
				<text>{{nickName}}</text>
			</view>
		</view>
		<view class="order_info">
			<view class="info_orders">
				<view class="all_order_status" @click="toMyorders()">
					<text>所有订单</text>
					<text class="iconfont icon-jiantouyou"></text>
				</view>
				<view class="other_order_status">
					<view class="order_status order_ing">
						<view class="status_image">
							<text class="iconfont icon-jinhangzhong"></text>
						</view>
						<text class="status_txt">
							进行中
						</text>
					</view>
					<view class="order_status order_ed">
						<view class="status_image">
							<text class="iconfont icon-yiwancheng"></text>
						</view>
						<text class="status_txt">
							已完成
						</text>
					</view>
					<view class="order_status order_cancel">
						<view class="status_image">
							<text class="iconfont icon-yiquxiao"></text>
						</view>
						<text class="status_txt">
							已取消
						</text>
					</view>
				</view>
				
			</view>
		</view>
		<view class="avaluate_info">
			<view class="all_order_status" @click="toMyServcieRecords()">
				<text>所有服务</text>
				<text class="iconfont icon-jiantouyou"></text>
			</view>
		</view>
		<view class="system">
			<view class="all_order_status" @click="toSysSetup()">
				<text>系统设置</text>
				<text class="iconfont icon-jiantouyou"></text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nickName:'',
				avatarUrl:''
				
			}
		},
		onLoad() {
			this.nickName = uni.getStorageSync('userInfo').username
			this.avatarUrl = getApp().globalData.avatarUrl
		},
		methods: {
			toMyServcieRecords:function(){
				uni.navigateTo({
					url:'/pages/mine/medical_records/medical_records'
				})
			},
			toMyorders(){
				uni.navigateTo({
					url:'/pages/myorders/myorders'
				})
			},
			toSysSetup(){
				uni.navigateTo({
					url:'/pages/system_setup/system_setup'
				})
			}
		}
	}
</script>

<style>
	@import url("./mine.css");
	@import url("../../static/iconfont.css");
</style>
